<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:42:"D:\www\crm/app/index\view\stocks\scan.html";i:1517537077;s:35:"D:\www\crm/app/index\view\base.html";i:1512719636;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>山东归仁生物科技有限公司<?php echo HTRConf('CONF.appName'); ?></title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/> 
<link href="__INDEX__/js/ligerui/skins/Aqua/css/ligerui-all.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" /> 
<link href="__STATIC__/plugins/validator/jquery.validator.css?v=<?php echo $v; ?>" rel="stylesheet">

<link href="__INDEX__/css/style.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" />   
<script src="__STATIC__/js/jquery.min.js?v=<?php echo $v; ?>"></script>  
<script src="__INDEX__/js/ligerui/js/ligerui.all.js?v=<?php echo $v; ?>" type="text/javascript"></script> 
<script type='text/javascript' src='__STATIC__/plugins/layer/layer.js?v=<?php echo $v; ?>'></script> 
<script src="__STATIC__/js/common.js?v=<?php echo $v; ?>"></script>
<script>
window.conf = {"ROOT":"__ROOT__","APP":"__APP__","STATIC":"__STATIC__","SUFFIX":"<?php echo config('url_html_suffix'); ?>","USER_LOGO":"<?php echo HTRConf('CONF.userLogo'); ?>",'GRANT':'<?php echo implode(",",session("HTR_STAFF.privileges")); ?>'}
</script>
<script src="__INDEX__/js/common.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/local/zh-CN.js?v=<?php echo $v; ?>"></script>
</head>
<body>

<div class="l-loading" style="display: block" id="htr-loading"></div>
<form id='editFrom' autocomplete='off'>
<table class='htr-form htr-box-top'>
  <tr>
     <th>商品编号<font color='red'>*</font>：</th>
     <td><input type="text" id='goodsSn' class='ipt' autofocus /></td>
  </tr>
</table>
</form>
<script>
$(function(){
  $('#goodsSn').focus();
  var goodsId = 0;
  $('#goodsSn').change(function(){
    check_goods();
  });
  function check_goods(){
    var goodsSn = $('#goodsSn').val();
    if(goodsSn!=''){
      $.post(HTR.U('index/stocks/reduce'),{goodsSn:goodsSn},function(data,textStatus){
        var json = HTR.toIndexJson(data);
        if(json.status=='1'){
          HTR.msg('商品出库成功',{icon:1,time: 1000}, function(){
            location.reload();
          });
        }else{
          HTR.msg(json.msg,{icon:2});
        }
      });      
    }
  }
})
</script>


<script src="__INDEX__/stocks/stocks.js?v=<?php echo $v; ?>" type="text/javascript"></script>

<script>
function showImg(opt){
	layer.photos(opt);
}
function showBox(opts){
	return HTR.open(opts);
}
</script>
</body>
</html>